package com.lms.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lms.domain.Role;
import com.lms.domain.User;
import com.lms.dto.UserDto;
import com.lms.dto.UserListDto;
import com.lms.dto.UserMapper;
 
@Controller
public class ResourceController {
	
	@Autowired
	private com.lms.service.UserService service;
 
	@RequestMapping(value="/myprofile",method = RequestMethod.GET)
	public String myprofile(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "myprofile";
 
	}
	
	
	
	@RequestMapping(value="/employees",method = RequestMethod.GET)
	public String employees(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "employees";
 
	}
	
	@RequestMapping(value="/projects",method = RequestMethod.GET)
	public String projects(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "projects";
 
	}
	
	
	
	
	@RequestMapping(value="/newtraining",method = RequestMethod.GET)
	public String newtraining(ModelMap model) {
 
		//model.addAttribute("message", "Spring 3 MVC Hello World");
		return "newtraining";
 
	}
	
	
	
	
 
}
